package com.spic.business.alarm.mapper;

import com.spic.business.alarm.domain.AlarmDevice;

import java.util.List;

/**
 * 告警桩Mapper接口
 *
 * @author spic
 * @date 2022-07-01
 */
public interface AlarmDeviceMapper
{
    /**
     * 查询告警桩
     *
     * @param id 告警桩主键
     * @return 告警桩
     */
    public AlarmDevice selectAlarmDeviceById(Long id);

    /**
     * 查询告警桩列表
     *
     * @param alarmDevice 告警桩
     * @return 告警桩集合
     */
    public List<AlarmDevice> selectAlarmDeviceList(AlarmDevice alarmDevice);

    /**
     * 新增告警桩
     *
     * @param alarmDevice 告警桩
     * @return 结果
     */
    public int insertAlarmDevice(AlarmDevice alarmDevice);

    /**
     * 修改告警桩
     *
     * @param alarmDevice 告警桩
     * @return 结果
     */
    public int updateAlarmDevice(AlarmDevice alarmDevice);

    /**
     * 删除告警桩
     *
     * @param id 告警桩主键
     * @return 结果
     */
    public int deleteAlarmDeviceById(Long id);

    /**
     * 批量删除告警桩
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAlarmDeviceByIds(Long[] ids);
}
